package ar.com.e2solver.solver.operator;

import ar.com.e2solver.solver.operator.impl.ColumnExchangeMutationOperator;
import ar.com.e2solver.solver.operator.impl.RotateMutationOperator;
import ar.com.e2solver.solver.operator.impl.RowExchangeMutationOperator;
import ar.com.e2solver.solver.operator.impl.SwapMutationOperator;

public class MutationOperatorFactory {

	public static MutationOperator getOperator(int operationNumber) {
		MutationOperator operator = null;
		switch (operationNumber) {
		case 0:
			operator = SwapMutationOperator.getInstance();
			break;
		case 1:
			operator = ColumnExchangeMutationOperator.getInstance();
			break;
		case 2:
			operator = RowExchangeMutationOperator.getInstance();
			break;
		//case 3:
		//	operator = RegionRotateMutationOperator.getInstance();
		//	break;
		default:
			operator = RotateMutationOperator.getInstance();
			break;
		}
		return operator;
	}

	
}
